package com.jf.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 类名：
 * 作者：WF
 * 功能：学生类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
// @Table(name = "student")
public class Student {
	@Id
	private Long sid;
	@Column(name = "sname")
	private String sname;
	private String sex;
	private Integer age;
	private String  addr;
	private Integer cid;
	@Transient    // 代表数据库中不存在此字段
	private String cname;

}
